#!/usr/bin/env python
# -*- coding: utf-8 -*-
from django import template

register = template.Library()


@register.inclusion_tag('sqr_list.html')
def sqr_list(num):
    num_dic = dict()
    for i in range(1, num + 1):
        num_dic[i] = i ** 2
    return {'num_dic': num_dic}
